package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenxuebin
 * @since 2018-12-13
 */
@TableName("t_lipin")
public class Lipin extends Model<Lipin> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 卡号
     */
	private String cardno;
    /**
     * 卡密
     */
	private String cardpwd;
    /**
     * 充值类型@1：500元话费；2：100积分
     */
	private Integer cztype;
    /**
     * 是否过期
     */
	@TableField("is_outdate")
	private Integer isOutdate;
	private Integer state;
	private Long sid;
	private Long mid;
	private Long mpid;
	private Long uid;
	private Date createtime;
	private Date modifytime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCardno() {
		return cardno;
	}

	public void setCardno(String cardno) {
		this.cardno = cardno;
	}

	public String getCardpwd() {
		return cardpwd;
	}

	public void setCardpwd(String cardpwd) {
		this.cardpwd = cardpwd;
	}

	public Integer getCztype() {
		return cztype;
	}

	public void setCztype(Integer cztype) {
		this.cztype = cztype;
	}

	public Integer getIsOutdate() {
		return isOutdate;
	}

	public void setIsOutdate(Integer isOutdate) {
		this.isOutdate = isOutdate;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Lipin{" +
			"id=" + id +
			", cardno=" + cardno +
			", cardpwd=" + cardpwd +
			", cztype=" + cztype +
			", isOutdate=" + isOutdate +
			", state=" + state +
			", sid=" + sid +
			", mid=" + mid +
			", mpid=" + mpid +
			", uid=" + uid +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			"}";
	}
}
